package com.zyl.xiaoshou.service;

import com.zyl.xiaoshou.dao.YuDingDao;
import com.zyl.xiaoshou.pojo.YuDingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YuDingService {
    @Autowired
    private YuDingDao yuDingDao;

    public List<YuDingVo> list(String fname) {
        List<YuDingVo> list = yuDingDao.list(fname);
        return list;
    }


    public int update(int fid) {
        int update = yuDingDao.update(fid);
        return update;
    }
}
